<?php
    include_once("../inc/connection.php");
    include_once("../inc/constants.inc.php");
    $email = mysql_real_escape_string($_POST['email']);
	$rollNumber = mysql_real_escape_string($_POST['rollNumber']);
    $return_data='';
  
    //email validation
    if (!filter_var($email, FILTER_VALIDATE_EMAIL))
    $return_data.='ie_';
      
    /* email exsitance */
    $searchEmail="select UserEmail as email from login_details where UserEmail='$email'";
    $rec = mysql_query($searchEmail);
    $res = mysql_fetch_array($rec);
    if(count($res['email'])>0)
		$return_data.='ee_';
		
	$searchRollNo="select UserRollNo from login_details where UserRollNo='$rollNumber'";
    $rec = mysql_query($searchRollNo);
    $res = mysql_fetch_array($rec);
    if(count($res['UserRollNo'])>0)
		$return_data.='re_';

    echo $return_data;
?>